
README for ‘The Economy is Rigged’: Inequality Narratives, Fairness, and Support for Redistribution in Six Countries

Authors: Pepper Culpepper, Ryan Shandler, Jae-Hee Jung, and Taeku Lee

Codebook.pdf presents information on the variables included in our analysis datasets.

All analyses were carried out using RStudio Version 2023.12.1+402 on macOS Sonoma 14.3. R Version is 4.3.1. The following R packages (and their versions) are used: plyr (1.8.8), psych (2.3.6), dplyr (1.1.2), ggplot2 (3.4.3), weights (1.0.4), mediation (4.5.0), scales (1.2.1), jtools (2.2.2), stargazer (5.2.3), ivreg (0.6-2), performance (0.10.5).

R files in each section below should be run in the order they are listed. 
 - Lines 1 through 1036 load, clean, and combine the data from different countries and waves.
 - Lines 1040 through 1493 replicate the analyses, tables and figures in the manuscript in the order in which they appear. 
 - Lines 1497 through 2143 replicate the analyses, tables and figures in the online appendix in the order in which they appear.

Source dataset: Redistribution_Datasets.RData
Analysis code: Replication_Code.R

